var setting = {
    showList: true,
    page: {
        pageNo: 10,
        total: 20,
        pageSize: 10,
        dataList: []
    },
    queryParam: {
        operate: '',
    },
}

var vue = new Vue({
    el: '.main',
    data: setting,
    methods: {
        handleCurrentChange: function (pageNo) {//分页查询
            page(pageNo)
        },
        handleSizeChange: function (pageSize) {//修改pageSize查询
            vue.page.pageSize=pageSize
            page(1)
        },
        query: function () {//条件查询
            page(1)
        }
    }
})
page(1)
function page(page) {
    var data = {
        page: page,
        pageSize: vue.page.pageSize,
        title: vue.queryParam.title,
    }
    $.post('/log/queryByPage', data, function (page) {
        vue.page.dataList = page.rows;
        vue.page.pageNo = page.page;
        vue.page.total = page.total;
    })
}